#include "tablewidgetutil.h"

void TableWidgetUtil::show_all(QTableWidget *tw, bool show)
{
    if (tw == nullptr)
        return;

    int rows = tw->rowCount();
    for (int row = 0; row < rows; ++row) {
        if (show) {
            tw->showRow(row);
        } else {
            tw->hideRow(row);
        }
    }
}
